#ifndef PACKET_H
#define PACKET_H
enum PACKET_TYPE
{
	UNKNOWN = 0,
	OBJECT_SPAWN,
	OBJECT_DESTROY,
	OBJECT_MOVE
};
class Buffer;
class Packet
{
public:
	Packet(void);
	Packet(PACKET_TYPE type);
	virtual ~Packet(void);


	virtual int Write(void* buffer) = 0;
	virtual void Read(Buffer& buffer) = 0;

	PACKET_TYPE GetType(void);
protected:
	PACKET_TYPE m_packetType;

};
#endif